package com.example.experiment1.FactoryPattern.pen;

public class BlackPenCore extends PenCore{
    public BlackPenCore(){
        super("黑色");
    }

    @Override
    public void writeWord(String s) {
        System.out.println("用["+color+"笔芯]写出{"+color+"}的字:" + s);
    }
}
